package org.example.controller;

import org.example.utils.ServiceInfoUtil;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {
    @RequestMapping("/order/{id}")
    public String getOrder(@PathVariable  int id){
        return "你的订单号是:"+id + ",server.port="+ ServiceInfoUtil.getPort();
    }
}
